<%--
  Created by IntelliJ IDEA.
  User: zjk
  Date: 2018-08-04
  Time: 10:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>编辑销售计划窗口</title>
    <!-- 引入公用表单样式 -->
    <link href="css/utils/utilsForm.css" rel="stylesheet" type="text/css">

</head>
<body>
<!--引入销售计划JS-->
<script type="text/javascript" src="js/before-sale/salePlan.js"></script>
<!-- 引入检测js -->
<script type="text/javascript" src="js/before-sale/check.js"></script>
<div style="text-align: center;">
    <form id="zjk-salePlan-and-planDetails-f-view" action="zjk-editSalePlan" method="post">


        <div class="dd">
            <input id="zjk-planId-view"  name="planId" type="hidden" >
            <input name="salePlanIsDel" type="hidden">
            <input id="zjk-planName-view" name="planName" class="easyui-textbox" data-options="label:'计划名称',width:1035" validType="textname">

        </div>


        <div class="dd">
            <input id="zjk-userId-view" class="easyui-combobox" name="userId"
                   data-options="label:'负责人',labelWidth:69,width:512,valueField: 'uId',textField: 'uname',
		   				url: 'saling/getUserInfoList'" prompt="请选择"/>
            <span style="display: inline-block;widht:50px;"></span>
            <select id="zjk-planCheck-view" prompt="请选择" class="easyui-combobox" name="planCheck" style="width:514px;" data-options="label:'审核状态',labelAlign:'right',panelHeight:'auto'">
                <option value="--">--</option>
                <option>未审核</option>
                <option>审核通过</option>
                <option>审核失败</option>
            </select>

        </div>
        <div class="dd">
            <input id="zjk-strategyProduct-view" name="strategyProduct" class="easyui-textbox" data-options="label:'产品策略',labelAlign:'right',width:513,
            labelAlign:'right'">
            <span style="display: inline-block;widht:50px;"></span>
            <input id="zjk-strategyPrice-view"  name="strategyPrice" class="easyui-textbox" data-options="label:'价格策略',width:514">
        </div>

        <div class="dd">
            <input id="zjk-expenseBudget-view"  name="expenseBudget" class="easyui-textbox" data-options="label:'预算费用',width:341" validType="checkDotNumber">
            <span style="display: inline-block;widht:50px;"></span>
            <input  id="zjk-setTime-view" name="setTime" class= "easyui-datebox" data-options="label:'创建时间',width:341,panelWidth:271">
            <span style="display: inline-block;widht:50px;"></span>
            <input  id="zjk-updateDate-view" name="updateDate" style="float: left;" class= "easyui-datebox" data-options="label:'更新时间',width:341,panelWidth:271">
        </div>
        <%--这两个div用来换行--%>
        <div class="dd"></div>
        <div class="dd"></div>

    </form>
    <table id="zjk-planDetails-dg-view" class="easyui-datagrid table-chance"  data-options="fit:true,striped:true,fitColumns:true,
   autoRowHeight:true,nowrap:false,pagination:true,toolbar:'#edit-zjk-salePlan-add-edit-edtails-tools',scrollbarSize:0,
pageList:[5,10,15,20],pageSize:5">
        <thead>
        <tr class="datagrid-header-row">
            <th data-options="field:'saleDetId',width:50,align:'center',checkbox:true,formatter: function (value, row, index) {
                                                                return row.planDetail.saleDetId;}">明细ID</th>
            <th data-options="field:'pId',width:50,align:'center',formatter: function (value, row, index) {
                                                                return row.productionDetail.pid;}">产品编号</th>
            <th data-options="field:'pname',width:100,align:'center',formatter: function (value, row, index) {
                                                                return row.productionDetail.pname;}">产品名称</th>
            <th data-options="field:'pwunit',width:30,align:'center',formatter: function (value, row, index) {
                                                                return row.productionDetail.pwunit;}">单位</th>
            <th data-options="field:'poprice',width:60,align:'center',formatter: function (value, row, index) {
                                                                return row.productionDetail.poprice;}">售价</th>
            <th data-options="field:'expectGain',width:70,align:'center',formatter: function (value, row, index) {
                                                                return row.planDetail.expectGain;}">目标销量</th>
            <th data-options="field:'planMoney',width:50,align:'center',formatter: function (value, row, index) {
                                                                return row.productionDetail.poprice * row.planDetail.expectGain;}">目标销售额</th>
            <th data-options="field:'cname',width:60,align:'center'">客户</th>
            <th data-options="field:'uname',width:60,align:'center'">销售代表</th>
            <th data-options="field:'planTime',width:90,align:'center',formatter: function (value, row, index) {
                                                                return row.planDetail.planTime;}" >计划时间</th>

        </tr>
        </thead>
        <tbody>

        </tbody>
    </table>
    <!--工具栏-->

    <div id="edit-zjk-salePlan-add-edit-edtails-tools">
        <a id="edit-zjk-form-salePlan-edtails-tools-add" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-mini_add2" >添加</a>
        <a id="edit-zjk-form-salePlan-edtails-remove" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-my_delete" >删除</a>
        <a id="edit-zjk-form-salePlan-edtails-edit" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-my_edit" >修改</a>
    </div>


    <!--添加明细窗口-->
    <div id="edit-add-salePlan-details" class="easyui-dialog" style="background-color:#EBEFF2; padding: 0px;" data-options="title:'添加计划销售的商品',modal:true,
			iconCls:'icon-save2',
			buttons:'#edit-zjk-salePlan-edtails-add-dialog-bb',
			width:'50%',
			height:'40%',
			closed:true,
			href:'edit-and-add-planDetails-f',
			shadow:true

			 "></div>
    <!--编辑明细窗口-->
    <div id="chun-edit-salePlan-details" class="easyui-dialog" style="background-color:#EBEFF2; padding: 0px;" data-options="title:'修改计划销售商品的信息',modal:true,
			iconCls:'icon-save2',
			buttons:'#chun-edit-zjk-salePlan-edtails-add-dialog-bb',
			width:'50%',
			height:'40%',
			closed:true,
			href:'chun-edit-planDetails-f',
			shadow:true

			 "></div>
    <!--添加明细窗口按钮-->
    <div id="edit-zjk-salePlan-edtails-add-dialog-bb">
        <a href="#" id="edit-zjk-salePlan-edtails-add-dialog-bb-save" class="easyui-linkbutton" data-options="iconCls:'icon-ok2'">保存</a>
        <a href="#" id="edit-zjk-salePlan-edtails-add-dialog-bb-close" class="easyui-linkbutton" data-options="iconCls:'icon-cancel2'">关闭</a>
    </div>
    <!--编辑明细窗口按钮-->
    <div id="chun-edit-zjk-salePlan-edtails-add-dialog-bb">
        <a href="#" id="chun-edit-zjk-salePlan-edtails-add-dialog-bb-save" class="easyui-linkbutton" data-options="iconCls:'icon-ok2'">保存</a>
        <a href="#" id="chun-edit-zjk-salePlan-edtails-add-dialog-bb-close" class="easyui-linkbutton" data-options="iconCls:'icon-cancel2'">关闭</a>
    </div>




</div>
</body>
</html>
